var e = require;
var t = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var n = e("AssetsManager"),
    a = cc._decorator,
    i = a.ccclass,
    r =
        (a.property,
        (function () {
            function e() {
                (this.ObjectNodeArray = []),
                    (this.ObjectPollArray = []),
                    (this.ObjectNameArray = ["soldier_node", "super_soldier_node"]);
            }
            var t;
            return (
                (t = e),
                (e.getInstance = function () {
                    return t.instance || (t.instance = new t()), t.instance;
                }),
                (e.prototype.init = function () {
                    (this.ObjectPollArray = []), (this.ObjectNodeArray = []);
                    for (var e = 0; e < this.ObjectNameArray.length; e++) {
                        var t = new cc.NodePool(),
                            o = n.default.getInstance().getFightPrefab(this.ObjectNameArray[e]);
                        this.ObjectNodeArray.push(o);
                        for (var a = 0; a < 6; a++) {
                            var i = cc.instantiate(o);
                            (i.active = !1), t.put(i);
                        }
                        this.ObjectPollArray[e] = t;
                    }
                }),
                (e.prototype.creatPlane = function (e) {
                    var t = this.ObjectPollArray[e];
                    return t.size() > 0 ? t.get() : cc.instantiate(this.ObjectNodeArray[e]);
                }),
                (e.prototype.Recovey = function (e, t) {
                    (e.active = !1), e.stopAllActions(), this.ObjectPollArray[t].put(e);
                }),
                (t = __decorate([i], e))
            );
        })());
o.default = r;
